//
//  SingerTableViewCell.m
//  艾听歌
//
//  Created by dllo on 16/5/26.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "SingerTableViewCell.h"

@implementation SingerTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.image = [[UIImageView alloc] init];
//        self.image.backgroundColor = [UIColor yellowColor];
//        [self.contentView addSubview:self.image];
        
        self.singerlabel = [[UILabel alloc] init];
//        self.singerlabel.backgroundColor = [UIColor blueColor];
        [self.contentView addSubview:self.singerlabel];
        
        self.name = [[UILabel alloc] init];
//        self.name.backgroundColor = [UIColor purpleColor];
        [self.contentView addSubview:self.name];
        
        self.number = [[UILabel alloc] init];
//        self.number.backgroundColor = [UIColor magentaColor];
        [self.contentView addSubview:self.number];
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.image.frame = CGRectMake(0, 0, self.contentView.frame.size.width, 180);
    self.singerlabel.frame = CGRectMake(60, 10, 230, 30);
    self.name.frame = CGRectMake(60, 45, 230, 20);
    self.number.frame = CGRectMake(10, 10, 40, 40);
}





- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
